package org.itboys.core.entity.mysql.pay;


import lombok.Data;
import org.itboys.mysql.entity.BaseMySqlEntity;

/**
*@Author: jiaqilei
*@Date: 9:56 2018/11/29
*@Discription: 支付配置
*/
@Data
public class SundayPayConfig extends BaseMySqlEntity {

	private String name;//账户所有人

	/**支付宝**/
	private String alipayAppId;//支付宝appID，RSA2加密使用
	private String alipayAppPrivateKey;//商户私钥
	private String alipayAppPublicKey;//商户公钥
	private String alipayPublicKey;//支付宝公钥
	/**微信**/
	private String weChatAppId;//微信AppId
	private String weChatAppSecret;//微信AppSecret
	private String weChatApi;//微信API,既支付密钥key
	private String weChatMchId;//微信商户ID
	
	private Integer type;//1支付宝2微信（开放平台如APP）3微信(服务号/网页)

	public String getTypeStr() {
		String typeStr="";
		if(type==null)return typeStr;

		switch (type) {
			case 1:
				typeStr="支付宝。";
				break;
			case 2:
				typeStr="微信（开放平台）";
				break;
			case 3:
				typeStr="微信（服务号）";
				break;
			default:
				break;
		}
		return typeStr;
	}
}
